namespace Jumpton.SFA.Server.Entity {
    using System;
    using System.Collections.Generic;
    using System.Text;
    using Jumpton.Persistent;
    using System.Data;
    
    
    [Map("Report")]
    public class Report : ObjectRow {
        
        public Report() {
        }
        
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="dataRow">DataTable 中的一行数据</param>
        /// <param name="objectTable">存储当前对象的数据表格</param>
        public Report(System.Data.DataRow dataRow, ObjectTable parent) : 
                base(dataRow, parent) {
        }
        
        [Key("ReportID")]
        public int ReportID {
            get {
                return (System.Int32)GetValue("ReportID");
            }
            set {
                SetValue("ReportID", value);
            }
        }

        [Field("ReportCode")]
        public string ReportCode
        {
            get
            {
                return (System.String)GetValue("ReportCode");
            }
            set
            {
                SetValue("ReportCode", value);
            }
        }
        
        [Field("ReportName")]
        public string ReportName {
            get {
                return (System.String)GetValue("ReportName");
            }
            set {
                SetValue("ReportName", value);
            }
        }
        
        [Field("ReportGroupID")]
        public int ReportGroupID {
            get {
                return (System.Int32)GetValue("ReportGroupID");
            }
            set {
                SetValue("ReportGroupID", value);
            }
        }
        
        [Field("ReportPath")]
        public string ReportPath {
            get {
                return (System.String)GetValue("ReportPath");
            }
            set {
                SetValue("ReportPath", value);
            }
        }
        
        [Field("Description")]
        public string Description {
            get {
                return (System.String)GetValue("Description");
            }
            set {
                SetValue("Description", value);
            }
        }
        
        [Field("Valid")]
        public string Valid {
            get {
                return (System.String)GetValue("Valid");
            }
            set {
                SetValue("Valid", value);
            }
        }
    }
}
